<%@ page contentType="text/html;charset=utf-8" %>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%@ page import="jsp.util.ConnectionContext" %>
<%@ page import="java.sql.*" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
	<link rel=stylesheet href="form.css" type="text/css">
</head>
<body>

<div id="wrapper" style="border:1px solid #696">
	<jsp:include page="Menubar.jsp" flush="false"/>	

	<%
	
	
	
	try{
	Connection conn = ConnectionContext.getConnection();
	Statement stmt = conn.createStatement();
	String getnumbering=request.getParameter("numbering");
	String sql="delete from studentQ where numbering=?";
	
	PreparedStatement pstmt = conn.prepareStatement(sql);				
	
	pstmt.setString(1, getnumbering);
	pstmt.executeUpdate();
	
	}catch(SQLException ex){ }
	
	%>

	<center>
<p></p> 
<font size='3'><b> Q & A</b></font>
<p></p>             
</center>

<TABLE border="0" width="600" cellpadding="2" cellspacing="2" align="center">
	<TR>
      		<TD>
         		<hr size='1' noshade>
      		</TD>
	</TR>
</TABLE>
<script language="javascript">
		
		function click(){
			
			history.go(-2);
			location.reload();
			
		}
</script>

<center>
게시물이 삭제되었습니다
<input type="button" name="back" value="돌아가기" onclick="history.go(-2)">
</center>

</div>

</body>
</html>